hs.loadSpoon("RecursiveBinder")
hs.loadSpoon("EmacsKeyBinding")

--[[
function remap()
  return function()
    tapKey('alt', 'left')
  end
end

function tapKey(mods, key)
  if key == nil then return end
  print("tapKey: "..mods.." "..key)
  hs.eventtap.event.newKeyEvent(mods, key, true):post()
  hs.eventtap.event.newKeyEvent(mods, key, false):post()
end

hs.hotkey.bind('ctrl', 'b', remap(), nil, remap())
--]]